package io;

import java.io.*;

/**
 * 使用缓冲字符输入流按行读取字符串
 */

public class BRDemo {
    public static void main(String[] args) throws IOException {
        //文件字节输入流(低级流,字节流)
        FileInputStream fis=new FileInputStream("./src/main/java/io/BRDemo.java");
        //转换流
        InputStreamReader isr=new InputStreamReader(fis);
        //缓冲流
        BufferedReader br=new BufferedReader(isr);

        String line;
        while ((line=br.readLine())!=null){
            System.out.println(line);
        }
    }
}

